package br.elsa.survey.services.events;

import br.elsa.survey.domain.survey.Survey;

/**
 * Event fired when a survey is created
 * 
 * @author diego
 * @since 09/11/2010
 */
public class SurveyCreatedEvent {

	/**
	 * The created {@link Survey}
	 */
	private final  Survey survey;
	
	public SurveyCreatedEvent(Survey survey) {
		this.survey = survey;
	}

	/**
	 * Gets the instance of the created {@link Survey}
	 * 
	 * @return instance of the created {@link Survey}
	 */
	public Survey getSurvey() {
		return survey;
	}
	
}
